package com.dhcc.bpm.modules.content.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName DocManagement
 * @Description  DocManagement实体类
 * @Author lijiacheng
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_doc_management")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DocManagement对象", description = "文档管理")
public class DocManagement extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 文档名称
	*/
		@ApiModelProperty(value = "文档名称")
		private String docName;
	/**
	* 文档编号
	*/
		@ApiModelProperty(value = "文档编号")
		private String docCode;
	/**
	* 文档类型
	*/
		@ApiModelProperty(value = "文档类型")
		private String docType;
	/**
	* SDK
	*/
		@ApiModelProperty(value = "SDK")
		private String sdk;
	/**
	* 文档级别
	*/
		@ApiModelProperty(value = "文档级别")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Integer docRank;
	/**
	* 文档窗台
	*/
		@ApiModelProperty(value = "文档窗台")
		private String docSill;
	/**
	* 来源
	*/
		@ApiModelProperty(value = "来源")
		@TableField(value = "resource")
		private String resource;
	/**
	* 性质
	*/
		@ApiModelProperty(value = "性质")
		private String property;
	/**
	* 键值
	*/
		@ApiModelProperty(value = "键值")
		private String keyValue;
	/**
	* 所属产品
	*/
		@ApiModelProperty(value = "所属产品")
		private String opcProductId;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;

	/**
	 * 文档目录编号
	 */
	@ApiModelProperty(value = "文档目录编号")
	private String opcDirectoryCode;

	/**
	 * 文档上传附件
	 */
	@ApiModelProperty(value = "文档上传附件")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private Long opcPluploadId;

}
